import request from '@/utils/request'
import {
  faceApiUrl,

} from '../../config'
//列表
export default {
  listBase(data) {
    return request({
      url: faceApiUrl + '/safeChekBase/getPageSafeChekBase',
      method: 'post',
      data: data
    })
  },
  delBase(params) {
    return request({
      url: faceApiUrl + '/safeChekBase/deleteByPrimaryKey',
      method: 'post',
      params
    })
  },
  addBase(data) {
    return request({
      url: faceApiUrl + '/safeChekBase/insertSelective',
      method: 'post',
      data: data
    })
  },
  updateBase(data) {
    return request({
      url: faceApiUrl + '/safeChekBase/updateByPrimaryKeySelective',
      method: 'post',
      data: data
    })
  },
  jobBase(data) {
    return request({
      url: faceApiUrl + '/safeChekBase/getTreeDept',
      method: 'post',
      data: data
    })
  },
  listPerson(data) {
    return request({
      url: faceApiUrl + '/safeChekPerson/getPageSafeChekPerson',
      method: 'post',
      data: data
    })
  },
  listPerson2(data) {
    return request({
      url: faceApiUrl + '/safeChekPerson/querySafeChekPersonList',
      method: 'post',
      data: data
    })
  },
  delPerson(params) {
    return request({
      url: faceApiUrl + '/safeChekPerson/deleteByPrimaryKey',
      method: 'post',
      params
    })
  },
  listPersonDetail(data) {
    return request({
      url: faceApiUrl + '/safeChekPerson/queryCheckItemDefault',
      method: 'post',
      data: data
    })
  },
  listPersonDetailModal(data) {
    return request({
      url: faceApiUrl + '/safeChekPerson/queryAllCheckItem',
      method: 'post',
      data: data
    })
  },
  addPerson(data) {
    return request({
      url: faceApiUrl + '/safeChekPerson/insertSelective',
      method: 'post',
      data: data
    })
  },
  updatePerson(data) {
    return request({
      url: faceApiUrl + '/safeChekPerson/updateByPrimaryKeySelective',
      method: 'post',
      data: data
    })
  },
  getPerson(params) {
    return request({
      url: faceApiUrl + '/safeChekPerson/getSafeChekPersonById',
      method: 'get',
      params
    })
  },
  listRecord(data) {
    return request({
      url: faceApiUrl + '/safeChekRecord/getPageSafeChekRecord',
      method: 'post',
      data: data
    })
  },
  getRecord(params) {
    return request({
      url: faceApiUrl + '/safeChekRecord/getSafeChekRecordById',
      method: 'get',
      params
    })
  },
  updateRecord(data) {
    return request({
      url: faceApiUrl + '/safeChekRecord/updateByPrimaryKeySelective',
      method: 'post',
      data: data
    })
  },
  //考核项维护启用停用
  changeEnable(params) {
    return request({
      url: faceApiUrl + '/safeChekBase/changeEnable',
      method: 'get',
      params
    })
  },
}
